package cn.yunyichina.provider.base.dao;

import cn.yunyichina.provider.base.entity.Doctor;
import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;
import cn.yunyichina.provider.framework.page.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*
* @Author auto_gen_by_tool
* @CreatedTime 2016-09-19 15:07:23
*/
@Repository
@MyBatisRepository
public interface DoctorDao extends BaseDao<cn.yunyichina.provider.base.entity.Doctor>{

    /**
     * 科室分级查询
     * @param pageInfo
     * @return
     */
    List<Doctor> selectFindDoctor(@Param("pageInfo") PageInfo pageInfo , @Param("entryTime") String entryTime , @Param("overTime") String overTime);

    List<Doctor> selectDoctorByDoctorAndPwd(@Param("doctorCode") String doctorCode,@Param("password") String password,@Param("hospitalCode") String hospitalCode);

    List<Doctor> selectByHospitalCode(@Param("hospitalCode") String hospitalCode);

    List<Doctor> selectByHospitalCodeAndDoctorCode(@Param("hospitalCode") String hospitalCode,@Param("doctorCode") String doctorCode);

}